package com.hp.team.bookstore.service.order.common;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "operation")
@XmlAccessorType(XmlAccessType.FIELD)
public class Operation {

	@XmlAttribute(required = true)
	private String name;

	@XmlAttribute(required = true)
	private String role;

	@XmlElement(name = "status", required = true)
	private List<Status> statuses;

	public void setName(String name) {
		this.name = name;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public void setStatuses(List<Status> statuses) {
		this.statuses = statuses;
	}

	public String getName() {
		return name;
	}

	public String getRole() {
		return role;
	}

	public List<Status> getStatuses() {
		return statuses;
	}
}
